package com.project.dao;

import com.project.bean.UserBean;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uId);

    int insert(UserBean record);

    int insertSelective(UserBean record);

    UserBean selectByPrimaryKey(Integer uId);

    int updateByPrimaryKeySelective(UserBean record);

    int updateByPrimaryKey(UserBean record);

    int insertBatchSelective(List<UserBean> records);

    int updateBatchByPrimaryKeySelective(List<UserBean> records);
    
    //通过名字查找user
    UserBean findUserByName(String name);
    
    //修改密码
    int changeUserPassword(@Param("UId")int UId,@Param("npwd")String npwd);
    
    //完善user信息
    int updateUserMessage(@Param("UId")int UId,@Param("uName")String uName,@Param("uAddress")String uAddress,@Param("uImg")String img,@Param("uX")Double x,@Param("uY")Double y);
    
	List<UserBean> findUserByType(int type);
    
}